import { createBrowserRouter } from 'react-router-dom'
import Chat from '@/pages/Chat'
import About from '@/pages/About'
import NotFound from '@/pages/NotFound'

const routes = createBrowserRouter([
    {
        path: '/',
        element: <Chat />,
    },
    {
        path: "/chat/:id",
        element: <Chat />,
    },
    {
        path: '/about',
        element: <About />,
    },
    {
        path: '*',
        element: <NotFound />,
    }
])

export default routes